import os
import sys
import logging

app_root = os.path.abspath(os.path.dirname(__file__))

sys.path = [app_root] + sys.path
#sys.path = [os.path.join(app_root, 'models')] + sys.path
#sys.path = [os.path.join(app_root, 'base')] + sys.path
#sys.path = [os.path.join(app_root, 'lib')] + sys.path

md5salt = 'Glog'

appencoding = 'utf-8'

"""the adminemail is used to send mail to user when adding user or else.
"""
adminemail = 'sevenever@gmail.com'

"""the appname will displayed in title and navigation path
"""
appname = 'glog'

"""the appversion
"""
appversion = 0.3

"""The default application's host, used for rss feed.
"""
host = 'http://www.sevenever.com'

"""apppath is the relative path to our app,

if apppath is '/glog' then:
    admin address is: http://host/glog/admin
    applicaion homepage address is: http://host/glog
    blog has id 'seven' address is: http://host/glog/seven

if apppath is '' then:
    admin address is: http://host/admin
    applicaion homepage address is: http://host
    blog has id 'seven' address is: http://host/seven
    
"""
apppath = '/%s' % appname
#apppath = ''

"""Is runtime gae or dev_appserver.py?
   some bugs make them different. We must handle it
"""
#runtime = 'dev'
runtime = 'gae'

"""Is current application run in debug mode?
   debug mode will print all error message detail such as exception call stack info to user.
"""
#debug = True
debug = False
